home *** CD-ROM | disk | FTP | other *** search
- class classes.shots.DeathNode
- {
- var x;
- var y;
- var id;
- var clip;
- var power = 20;
- function DeathNode(px, py, pid)
- {
- this.x = px;
- this.y = py;
- this.id = pid;
- _root.d = _root.d + 1;
- this.clip = _root.attachMovie("deathNode","deathNode" + this.id + "Clip",_root.d + 1000);
- this.clip._x = this.x;
- this.clip._y = this.y;
- this.clip.id = this.id;
- }
- function main()
- {
- if(this.clip.hitTest(_root[_root.char + "Clip"]))
- {
- _root[_root.char].hit(random(4),random(4),100,this.power);
- }
- if(this.clip.end)
- {
- _root.removeEnemyShot("deathNode" + this.id);
- }
- }
- }
-